package com.hsh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hsh.persist.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author 黄思海
 * @since 2021-06-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("db_menu")
@ApiModel(value = "DbMenu对象", description = "菜单表")
public class DbMenu extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "pk 菜单id")
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    @ApiModelProperty(value = "父菜单id，一级菜单为0")
    private Integer parentId;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "菜单地址【唯一】")
    private String url;

    @ApiModelProperty(value = "权限标识（user：add，user：import）【唯一】")
    private String perms;

    @ApiModelProperty(value = "图标(默认旗帜)")
    private String icon;

    @ApiModelProperty(value = "类型 0菜单 1按钮(默认是菜单)")
    private Integer type;

    @ApiModelProperty(value = "排序")
    private Integer seq;

    @ApiModelProperty(value = "禁用：1，未禁：0")
    private Integer disabled;

    @ApiModelProperty(value = "菜单栏：0：不展开 1：展开")
    private Integer open;


}
